dfu: mmc: call fs functions instead of run_command
authorSimon Goldschmidt <[email protected]>
Fri, 25 Jan 2019 18:58:01 +0000 (19:58 +0100)
committerTom Rini <[email protected]>
Thu, 31 Jan 2019 02:22:53 +0000 (21:22 -0500)
commit1f92c074cbb53debc7ad31073dc7895d8a2aa44e
treee3a15bd7ba85b3e4467cbc44dd6344332c753d4c
parent552452f80caf1e1069e547b6605987427e93111b
dfu: mmc: call fs functions instead of run_command

This unbreaks dfu mmc_file_op which is currently broken since using the
load cmd on a buffer from heap is not allowed - added with
commit aa3c609e2be5 ("fs: prevent overwriting reserved memory")

Fixes: commit aa3c609e2be5 ("fs: prevent overwriting reserved memory")
Reported-by: Stephen Warren <[email protected]>
Signed-off-by: Simon Goldschmidt <[email protected]>
Tested-by: Stephen Warren <[email protected]>
Acked-by: Lukasz Majewski <[email protected]>
drivers/dfu/dfu_mmc.c
include/dfu.h